package com.yunkont.pigcontrol.bean;

import java.util.List;

/**
 * Created by bomei on 2017/9/23.
 */

public class AllPigBean {


    /**
     * _embedded : {"pigConfigs":[{"pid":"LVGB","st":5,"_links":{"self":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/1"},"pigConfig":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/1"}}},{"pid":"OQO2","st":null,"_links":{"self":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/2"},"pigConfig":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/2"}}},{"pid":"MXW1","st":null,"_links":{"self":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/3"},"pigConfig":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/3"}}},{"pid":"AMWR","st":null,"_links":{"self":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/4"},"pigConfig":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/4"}}},{"pid":"MXMJ","st":null,"_links":{"self":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/5"},"pigConfig":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/5"}}},{"pid":"26XA","st":null,"_links":{"self":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/6"},"pigConfig":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/6"}}}]}
     * _links : {"self":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig{?page,size,sort}","templated":true},"profile":{"href":"https://e5ba8c3a.ngrok.io/api/v1/profile/pig"}}
     * page : {"size":20,"totalElements":6,"totalPages":1,"number":0}
     */

    private EmbeddedBean _embedded;
    private LinksBeanX _links;
    private PageBean page;

    public EmbeddedBean get_embedded() {
        return _embedded;
    }

    public void set_embedded(EmbeddedBean _embedded) {
        this._embedded = _embedded;
    }

    public LinksBeanX get_links() {
        return _links;
    }

    public void set_links(LinksBeanX _links) {
        this._links = _links;
    }

    public PageBean getPage() {
        return page;
    }

    public void setPage(PageBean page) {
        this.page = page;
    }

    public static class EmbeddedBean {
        private List<PigConfigsBean> pigConfigs;

        public List<PigConfigsBean> getPigConfigs() {
            return pigConfigs;
        }

        public void setPigConfigs(List<PigConfigsBean> pigConfigs) {
            this.pigConfigs = pigConfigs;
        }

        public static class PigConfigsBean {
            /**
             * pid : LVGB
             * st : 5
             * _links : {"self":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/1"},"pigConfig":{"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/1"}}
             */

            private String pid;
            private int st;
            private LinksBean _links;

            public String getPid() {
                return pid;
            }

            public void setPid(String pid) {
                this.pid = pid;
            }

            public int getSt() {
                return st;
            }

            public void setSt(int st) {
                this.st = st;
            }

            public LinksBean get_links() {
                return _links;
            }

            public void set_links(LinksBean _links) {
                this._links = _links;
            }

            public static class LinksBean {
                /**
                 * self : {"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/1"}
                 * pigConfig : {"href":"https://e5ba8c3a.ngrok.io/api/v1/pig/1"}
                 */

                private SelfBean self;
                private PigConfigBean pigConfig;

                public SelfBean getSelf() {
                    return self;
                }

                public void setSelf(SelfBean self) {
                    this.self = self;
                }

                public PigConfigBean getPigConfig() {
                    return pigConfig;
                }

                public void setPigConfig(PigConfigBean pigConfig) {
                    this.pigConfig = pigConfig;
                }

                public static class SelfBean {
                    /**
                     * href : https://e5ba8c3a.ngrok.io/api/v1/pig/1
                     */

                    private String href;

                    public String getHref() {
                        return href;
                    }

                    public void setHref(String href) {
                        this.href = href;
                    }
                }

                public static class PigConfigBean {
                    /**
                     * href : https://e5ba8c3a.ngrok.io/api/v1/pig/1
                     */

                    private String href;

                    public String getHref() {
                        return href;
                    }

                    public void setHref(String href) {
                        this.href = href;
                    }
                }
            }
        }
    }

    public static class LinksBeanX {
        /**
         * self : {"href":"https://e5ba8c3a.ngrok.io/api/v1/pig{?page,size,sort}","templated":true}
         * profile : {"href":"https://e5ba8c3a.ngrok.io/api/v1/profile/pig"}
         */

        private SelfBeanX self;
        private ProfileBean profile;

        public SelfBeanX getSelf() {
            return self;
        }

        public void setSelf(SelfBeanX self) {
            this.self = self;
        }

        public ProfileBean getProfile() {
            return profile;
        }

        public void setProfile(ProfileBean profile) {
            this.profile = profile;
        }

        public static class SelfBeanX {
            /**
             * href : https://e5ba8c3a.ngrok.io/api/v1/pig{?page,size,sort}
             * templated : true
             */

            private String href;
            private boolean templated;

            public String getHref() {
                return href;
            }

            public void setHref(String href) {
                this.href = href;
            }

            public boolean isTemplated() {
                return templated;
            }

            public void setTemplated(boolean templated) {
                this.templated = templated;
            }
        }

        public static class ProfileBean {
            /**
             * href : https://e5ba8c3a.ngrok.io/api/v1/profile/pig
             */

            private String href;

            public String getHref() {
                return href;
            }

            public void setHref(String href) {
                this.href = href;
            }
        }
    }

    public static class PageBean {
        /**
         * size : 20
         * totalElements : 6
         * totalPages : 1
         * number : 0
         */

        private int size;
        private int totalElements;
        private int totalPages;
        private int number;

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getTotalElements() {
            return totalElements;
        }

        public void setTotalElements(int totalElements) {
            this.totalElements = totalElements;
        }

        public int getTotalPages() {
            return totalPages;
        }

        public void setTotalPages(int totalPages) {
            this.totalPages = totalPages;
        }

        public int getNumber() {
            return number;
        }

        public void setNumber(int number) {
            this.number = number;
        }
    }
}
